package com.sangharsh.core.algo;

import java.util.Comparator;

public class EdgeColorComparator implements Comparator<DirectedEdge> {

	@Override
	public int compare(DirectedEdge first, DirectedEdge second) {
		int value = first.getColor().getWeight() - second.getColor().getWeight(); 
		return value<0? value*-1: value;
	}

}
